package org.boulderfoodrescue.webapp.client.calendar;

import com.google.gwt.core.client.GWT;
import com.google.gwt.safehtml.shared.SafeUri;
import com.google.gwt.safehtml.shared.UriUtils;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Frame;
import com.google.gwt.user.client.ui.Widget;

public class CalendarView extends Composite{

	private static CalendarControlsUiBinder uiBinder = GWT
	    .create(CalendarControlsUiBinder.class);

	interface CalendarControlsUiBinder extends UiBinder<Widget, CalendarView> {
	}

	@UiField
	Frame calendarFrame;
	
	public CalendarView() {
		initWidget(uiBinder.createAndBindUi(this));
		String myCalendar = "https://www.google.com/calendar/embed?src=swiese391%40gmail.com&ctz=America/Denver&showTitle=0";
		SafeUri url = UriUtils.fromString(myCalendar);
		calendarFrame.setUrl(url);
	}

}
